<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:job="livcos.org/ns/process/job"
  xmlns:c="livcos.org/ns/cosmos"
  xmlns:u="livcos.org/ns/cosmos/update"
  exclude-result-prefixes="c">
  
  <xsl:param name="objId"/>
  <xsl:param name="tmplId"/>
  <xsl:param name="daIdx" select="1"/>
  
  <xsl:template match="/">
    <job:copy ref="{$tmplId}" target="{$objId}" data-access="da:*[{$daIdx}]"/>
    <job:feed stream="response" base="job">
      <feedback>
        <create objId="{$objId}" tmplId="{$tmplId}" daIdx="{$daIdx}"/>
      </feedback>
    </job:feed>
  </xsl:template>
  
</xsl:stylesheet>
